<#import "/common/function.ftl" as fn>
<@fn.header _title="" />
<script language="javascript">
function deleteRecord(id)
{
	if(confirm('删除操作可能影响已经发生的业务，确定要删除？'))
	{
		window.location.href = "delete?id=" + id;
	}
}
</script>
<body>
<form id="listForm" action="list" method="post">
	<h2><img src="${base}/resources/style/images/iconDivM.gif" width="16" height="16" />模板管理</h2>
	<div class="title marginTop15">
		<div class="title-middle">
			<div class="title-left"></div>
			<div class="title-right">
            	<img src="${base}/resources/style/images/action_add.gif" width="16" height="16" /><a href="#" onclick="location.href='add'">创建模板</a>
            </div>
	  </div>
	</div>
	<table class="table2" id="jsListTable">
		<tr>
			<th>文件名</th>
			<th>操作</th>
		</tr>
		<#list files as file>
		<tr>
			<td>
				${file.name}
			</td>
			<td>
				<a href="edit?fileName=${file.name}"  class="deleteDeviceInfoButton"  title="编辑">[编辑]</a>
				<a onclick="deleteRecord('${file.name}')" style="cursor:pointer" class="deleteDeviceInfoButton"  title="删除">[删除]</a>
			</td>
		</tr>
		</#list>
	</table>
</form>
</body>
</html>
